﻿app.config(['$routeProvider', function ($routeProvider) {
    $routeProvider
    .when('/', { templateUrl: '../Scripts/Views/orders.html', controller: 'StoreController' })
    .when('/home', { templateUrl: '../Scripts/Views/orders.html' })
    .when('/add', { templateUrl: '../Scripts/Views/add-order.html', controller: 'OrderController' })
    .when('/edit/:id', { templateUrl: '../Scripts/Views/add-order.html', controller: 'OrderController' })
    .when('/error', { templateUrl: '../Scripts/Views/Error.html', controller: 'ErrorController' })
    .otherwise({ redirectTo: '/error' });
}]);
